package com.zf.zffencheng.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zf.zffencheng.model.pojo.TAccount;
import com.zf.zffencheng.model.pojo.TAdminBank;
import com.zf.zffencheng.model.vo.AccountVo;
import com.zf.zffencheng.model.vo.AdminLoginInfoVo;
import com.zf.zffencheng.model.vo.HomePageVo;

import java.util.List;

/**
 * ClassName: AccountService <br/>
 * Description:  <br/>
 * date: 2021/5/11 17:26<br/>
 *
 * @author william <br/>
 */
public interface AdminBankService extends IService<TAdminBank> {
    /**
     * 获取卡信息
     * @param id
     * @return
     */
    TAdminBank get(Integer id,Integer adminId);

    /**
     * 卡列表
     * @return
     */
    List<TAdminBank> listBank(Integer adminId,Integer page,Integer pageSize);
    Integer listCount(Integer adminId);
    /**
     * 新增
     * @param adminBank
     */
    TAdminBank addBank(TAdminBank adminBank,Integer adminId);
    /**
     * 删除卡
     * @param id
     */
    void deleteBank(Integer id,Integer adminId);

    /**
     * 修改
     * @param adminBank
     */
    TAdminBank updateBank(TAdminBank adminBank,Integer adminId);
    /**
     * 修改默认
     */
    TAdminBank updateDefault(Integer id,Integer adminId);
}
